package com.ruoyi.diagnosis.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 患者详情对象 patient_info
 * 
 * @author fansea
 * @date 2024-07-22
 */
@TableName("patient_info")
public class PatientInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 患者ID */
    @TableId(value = "patient_id", type = com.baomidou.mybatisplus.annotation.IdType.AUTO)
    private Long patientId;

    /** 患者编号 */
    @Excel(name = "患者编号")
    private String patientCode;

    /** 姓名 */
    @Excel(name = "姓名")
    private String patientName;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    /** 性别（0男 1女 2未知） */
    @Excel(name = "性别", readConverterExp = "0=男,1=女,2=未知")
    private String sex;

    /** 体重 */
    @Excel(name = "体重")
    private BigDecimal weight;

    /** 身高 */
    @Excel(name = "身高")
    private BigDecimal height;

    public void setPatientId(Long patientId) 
    {
        this.patientId = patientId;
    }

    public Long getPatientId() 
    {
        return patientId;
    }
    public void setPatientCode(String patientCode) 
    {
        this.patientCode = patientCode;
    }

    public String getPatientCode() 
    {
        return patientCode;
    }
    public void setPatientName(String patientName) 
    {
        this.patientName = patientName;
    }

    public String getPatientName() 
    {
        return patientName;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setWeight(BigDecimal weight) 
    {
        this.weight = weight;
    }

    public BigDecimal getWeight() 
    {
        return weight;
    }
    public void setHeight(BigDecimal height) 
    {
        this.height = height;
    }

    public BigDecimal getHeight() 
    {
        return height;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("patientId", getPatientId())
            .append("patientCode", getPatientCode())
            .append("patientName", getPatientName())
            .append("age", getAge())
            .append("sex", getSex())
            .append("weight", getWeight())
            .append("height", getHeight())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
